# 作者: YYJ
# 2025年07月09日20时56分45秒
# 2486249622@qq.com


from multiprocessing import Process
import time
import os

def run_proc():
    while True:
        print('子进程运行中, pid=%d...' % os.getpid())
        time.sleep(1)

if __name__ == '__main__':
    p = Process(target=run_proc)
    p.start()
    while True:
        print('父进程运行中, pid=%d...' % os.getpid())
        time.sleep(1)
